(#) androidx.activity:activity

Name
:   Activity
Description
:   Provides the base Activity subclass and the relevant hooks to build a
:   composable structure on top.
License
:   [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
Vendor
:   Android Open Source Project
Identifier
:   androidx.activity
Feedback
:   https://issuetracker.google.com/issues/new?component=527362
Min
:   Lint 8.0 and 8.1
Compiled
:   Lint 8.0 and 8.1
Artifact
:   androidx.activity:activity:1.10.0-rc01

(##) Included Issues

|Issue Id                                                                                  |Issue Description                                         |
|------------------------------------------------------------------------------------------|----------------------------------------------------------|
|[InvalidFragmentVersionForActivityResult](InvalidFragmentVersionForActivityResult.md.html)|Update to Fragment 1.3.0 to use ActivityResult APIs       |
|[InvalidUseOfOnBackPressed](InvalidUseOfOnBackPressed.md.html)                            |Do not call onBackPressed() within OnBackPressedDisptacher|

(##) Including

!!!
   This is not a built-in check. To include it, add the below dependency
   to your project.

```
// build.gradle.kts
implementation("androidx.activity:activity:1.10.0-rc01")

// build.gradle
implementation 'androidx.activity:activity:1.10.0-rc01'

// build.gradle.kts with version catalogs:
implementation(libs.activity)

# libs.versions.toml
[versions]
activity = "1.10.0-rc01"
[libraries]
# For clarity and text wrapping purposes the following declaration is
# shown split up across lines, but in TOML it needs to be on a single
# line (see https://github.com/toml-lang/toml/issues/516) so adjust
# when pasting into libs.versions.toml:
activity = {
    module = "androidx.activity:activity",
    version.ref = "activity"
}
```

1.10.0-rc01 is the version this documentation was generated from;
there may be newer versions available.

(##) Changes

* 1.2.0: First version includes
  InvalidFragmentVersionForActivityResult.
* 1.9.0: Adds InvalidUseOfOnBackPressed.

(##) Version Compatibility

There are multiple older versions available of this library:

| Version            | Date     | Issues | Compatible | Compiled      | Requires |
|-------------------:|----------|-------:|------------|--------------:|---------:|
|         1.10.0-rc01|2024/12/11|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|       1.10.0-beta01|2024/11/13|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|      1.10.0-alpha03|2024/10/30|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|      1.10.0-alpha02|2024/09/04|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|      1.10.0-alpha01|2024/06/26|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.9.3|2024/10/16|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.9.2|2024/09/04|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.9.1|2024/07/24|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.9.0|2024/04/17|       2|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.8.2|2023/12/13|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.8.1|2023/11/15|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.8.0|2023/10/04|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               1.7.2|2023/05/24|       1|         Yes|    8.0 and 8.1|       7.0|
|               1.7.1|2023/04/19|       1|         Yes|    8.0 and 8.1|       7.0|
|               1.7.0|2023/03/22|       1|         Yes|    8.0 and 8.1|       7.0|
|               1.6.1|2022/10/24|       1|         Yes|    7.3 and 7.4|       7.0|
|               1.6.0|2022/09/21|       1|         Yes|    7.3 and 7.4|       7.0|
|               1.5.1|2022/07/27|       1|         Yes|    7.3 and 7.4|       7.0|
|               1.5.0|2022/06/29|       1|         Yes|    7.3 and 7.4|       7.0|
|               1.4.0|2021/10/27|       1|         Yes|            7.1|       4.1|
|               1.3.1|2021/08/04|       1|         Yes|            7.0|       3.3|
|               1.3.0|2021/07/28|       1|         Yes|            7.0|       3.3|
|               1.2.4|2021/07/21|       1|         Yes|            4.1|       3.3|
|               1.2.3|2021/05/05|       1|         Yes|            4.1|       3.3|
|               1.2.2|2021/03/24|       1|         Yes|            4.1|       3.3|
|               1.2.1|2021/03/10|       1|         Yes|            4.1|       3.3|
|               1.2.0|2021/02/10|       1|         Yes|            4.1|       3.3|

<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://morgan3d.github.io/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>